package xcmg.device.dao.mapper.threedayplan;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import xcmg.device.dao.entity.threedayplan.ThreeDayPlanDetailDO;
import xcmg.device.service.vo.delivery.OutBillValuesVO;
import xcmg.device.service.vo.threedayplan.DlvInfoQueryVO;

import java.util.List;

@Mapper
@Repository
public interface ThreeDayPlanDetailDOMapper {
    int deleteByPrimaryKey(String id);

    int deleteByMainId(@Param("mainId") String mainId);

    int insert(ThreeDayPlanDetailDO record);

    int insertSelective(ThreeDayPlanDetailDO record);

    ThreeDayPlanDetailDO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ThreeDayPlanDetailDO record);

    int updateByPrimaryKey(ThreeDayPlanDetailDO record);

    List<ThreeDayPlanDetailDO> selectByMainId(@Param("mainId") String mainId);

    List<OutBillValuesVO> threeOutThreeDayPlan(DlvInfoQueryVO dlvInfoQueryVO);

    List<OutBillValuesVO> threeDayPlanDlv(DlvInfoQueryVO dlvInfoQueryVO);

    int updateById(@Param("id") String id,@Param("dlvStatus") Integer dlvStatus);

    Integer getZeroCountByMainId(@Param("mainId") String mainId);

    Integer getCountByMainId(@Param("mainId") String mainId);
}